package com.nanhai.buddhist.college.module.collegebase.api.room;

import com.nanhai.buddhist.college.framework.common.pojo.CommonResult;
import com.nanhai.buddhist.college.module.collegebase.api.room.dto.RoomRespDTO;
import com.nanhai.buddhist.college.module.collegebase.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;


@Api(tags = "RPC 服务 - 教师数据提供")
@FeignClient(name = ApiConstants.NAME)
public interface RoomApi {

    String PREFIX = ApiConstants.PREFIX + "/classroom-info";

    @GetMapping(PREFIX + "/list")
    @ApiOperation("获得教室列表")
    CommonResult<List<RoomRespDTO>> getClassroomInfoList(@RequestParam("ids") Collection<String> ids);
}